<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String basePath = request.getContextPath();
%>

<!-- 分页提交表单,此表单是分页包括查询最终提交的表单 -->
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="page.curPage" value="<s:property value="#PAGE_LIST.curPage"/>" />
	<input type="hidden" name="page.pageSize" value="<s:property value="#PAGE_LIST.pageSize"/>" />
</form>
<!-- 分页提交表单,此表单是分页包括查询最终提交的表单 -->

<!-- 查询条件表单 -->
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="<%=basePath%>/user/manager.action" method="post">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>用户名：</label>
					<input type="text" name="user.userName" value="<s:property value="#userName"/>"/>
				</li>
				<li>
					<label>真实姓名：</label>
					<input type="text" name="user.userRealName" value="<s:property value="#userRealName"/>"/>
				</li>
			</ul>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="reset">清除查询条件</button></div></div></li>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<!-- 查询条件表单 -->

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<%=basePath%>/user/toUserAdd.action" target="navTab" rel="userAdd"><span>用户添加</span></a></li>
			<li><a class="delete" href="<%=basePath%>/user/userDel.action?user.userId={sid_user}" target="ajaxTodo" title="确定要删除该用户吗？" warn="请选择一个用户"><span>删除</span></a></li>
			<li><a class="edit" href="<%=basePath%>/user/toUserModify.action?user.userId={sid_user}" rel="userModify" target="navTab" warn="请选择一个用户"><span>用户信息修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
		</ul>
	</div>

	<div id="w_list_print" layoutH="116">
	<table class="list" width="98%" targetType="navTab">
		<thead>
			<tr>
				<th width="80">用户名</th>
				<th width="100">用户真实姓名</th>
				<th width="100">用户座机</th>
				<th width="100">用户分机号码</th>
				<th width="100">用户手机</th>
				<th width="100">用户邮箱</th>
				<th width="100">用户创建时间</th>
				<th width="100">最后登录时间</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="#request.USER_LIST_REQ_KEY" id="user">
				<tr target="sid_user" rel="<s:property value="#user.userId"/>" view="<%=basePath%>/user/userView.action?user.userId={sid_user}">
					<td><s:property value="#user.userName"/></td>
					<td><s:property value="#user.userRealName"/></td>
					<td><s:property value="#user.userPhone"/></td>
					<td><s:property value="#user.userSubPhone"/></td>
					<td><s:property value="#user.userMobile"/></td>
					<td><s:property value="#user.userEmail"/></td>
					<td><s:date name="#user.userCreateTimeFormat" format="yyyy-MM-dd"/></td>
					<td><s:date name="#user.userLastLoginTimeFormat" format="yyyy-MM-dd HH:mm:ss"/></td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	</div>
	
	<div class="panelBar" >
		<div class="pages">
			<span>显示</span>
			<select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共<s:property value="#PAGE_LIST.dataNum"/>条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="<s:property value="#PAGE_LIST.dataNum"/>" numPerPage="<s:property value="#PAGE_LIST.pageSize"/>" pageNumShown="10" currentPage="<s:property value="#PAGE_LIST.curPage"/>"></div>

	</div>

</div>